import logging as log
from src.services.gitcode_sync.syncer import GitCodeSyncer


def main():
    log.info("===== 开始数据同步任务 =====")
    repos_config = [{'owner': '', 'repo_name': ''}]
    for repo_config in repos_config:
        owner, repo_name = repo_config['owner'], repo_config['repo_name']
        sync_service = GitCodeSyncer(repo_name, owner)
        sync_service.full_sync()

    log.info("===== 数据同步任务完成 =====")


if __name__ == "__main__":
    main()